package com.liukai.todo_android.common.base;

import java.util.Date;

public class BaseEntity {

    protected Long id;

    protected Date gmtCreate;

    protected Date gmtModified;

    protected Byte deleted;

    public Long getId() {
        return id;
    }

    public BaseEntity setId(Long id) {
        this.id = id;
        return this;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public BaseEntity setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
        return this;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public BaseEntity setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
        return this;
    }

    public Byte getDeleted() {
        return deleted;
    }

    public BaseEntity setDeleted(Byte deleted) {
        this.deleted = deleted;
        return this;
    }

    @Override
    public String toString() {
        return "BaseEntity{" +
                "id=" + id +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                ", deleted=" + deleted +
                '}';
    }
}